#pragma once


#include "HashTable.h"

namespace czb {

	template<class K, class Hash = HashFunc<K>>
	class unordered_set
	{
	public:
		
		struct SetKeyOfT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};


		typedef typename HashTable <K, const K,SetKeyOfT, Hash>::Iterator Iterator;
		bool Insert(const K& key)
		{
			return _h.Insert(key);
		}

		Iterator begin()
		{
			return _h.begin();
		}

		Iterator end()
		{
			return _h.end();
		}

	private:
		HashTable<K,const K, SetKeyOfT,Hash> _h;
	};
}